﻿using RSModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RSFrame.Services
{
    public interface IRSEventService
    {
        public string[] TitleStage { get; set; }

        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="rSEvent"></param>
        /// <returns></returns>
        int? AddRSEvent(RSEvent rSEvent);

        bool DeleteRSEvent(int id);

        /// <summary>
        /// 重新获取整个消息列表
        /// </summary>
        /// <param name="parameters">车辆ID</param>
        /// <returns>更新完毕的消息列表</returns>
        List<RSEvent> GetRSEventsByCarID(int carID);

        RSEvent GetRSEventByID(int id);

        /// <summary>
        /// 更新消息列表
        /// </summary>
        /// <param name="rSEvents">要更新的列表</param>
        /// <param name="parameters">车辆ID</param>
        void Update(List<RSEvent> rSEvents, params object[] parameters);

        void RemoveMessages(List<RSEvent> rSEvents);
    }
}
